#ifndef __DEVICE_IO_H__
#define __DEVICE_IO_H__

#include <stdint.h>
#include "device_cfg.h"


IO_STATUS DeviceIOOpen(uint8_t Index, uint8_t Mode, uint8_t delevel);
IO_STATUS DeviceIOWrite(uint8_t offset,uint8_t level);
IO_STATUS DeviceIOWriteBlock(uint8_t offset,uint8_t level);
IO_STATUS DeviceIORead(uint8_t offset,uint8_t *level);
IO_STATUS DeviceIOReadBlock(uint8_t offset,uint8_t *level);
IO_STATUS DeviceIOReve(uint8_t offset,uint16_t revetime,uint16_t revecnt);
void DeviceIOTask(void);


#endif


